package com.td.module.cooperative.convert.partner;

import com.td.framework.common.pojo.PageResult;
import com.td.module.cooperative.controller.admin.partner.vo.PartnerCreateReqVO;
import com.td.module.cooperative.controller.admin.partner.vo.PartnerExcelVO;
import com.td.module.cooperative.controller.admin.partner.vo.PartnerRespVO;
import com.td.module.cooperative.controller.admin.partner.vo.PartnerUpdateReqVO;
import com.td.module.cooperative.dal.dataobject.partner.PartnerDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 合作伙伴 Convert
 *
 * @author wangxx
 */
@Mapper
public interface PartnerConvert {

    PartnerConvert INSTANCE = Mappers.getMapper(PartnerConvert.class);

    PartnerDO convert(PartnerCreateReqVO bean);

    PartnerDO convert(PartnerUpdateReqVO bean);

    PartnerRespVO convert(PartnerDO bean);

    List<PartnerRespVO> convertList(List<PartnerDO> list);

    PageResult<PartnerRespVO> convertPage(PageResult<PartnerDO> page);

    List<PartnerExcelVO> convertList02(List<PartnerDO> list);

}
